class User():
    def __init__(self, first_name, last_name, hometown):
        self.first_name = first_name
        self.last_name = last_name
        self.hometown = hometown
        self.login_attempts = 0
    def describe_user(self):
        print(f"My name is {self.first_name}{self.last_name}, I'm from {self.hometown}.")
    def greet_user(self):
        print("hello every one!")
    def increment_login_attempts(self):
        self.login_attempts += 1
    def reset_login_attempts(self):
        self.login_attempts = 0


class Privileges():
    def __init__(self):
        self.privileges = ["can add post", "can delete post", "can ban user"]
    
    def show_privileges(self):
        print("he is admini. He has the following privileges:")
        for pri in self.privileges:
            print(pri)


class Admini(User):
    def __init__(self, first_name, last_name, hometown):
        super().__init__(first_name, last_name, hometown)
        self.pri = Privileges()


person = Admini("xiao", "yang", "suzhou")
person.describe_user()
person.greet_user()
person.pri.show_privileges()



